#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QPainter>
#include <QMouseEvent>
#include <QMovie>
#include<iostream>
#include"beibao.h"

extern int sw;
namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    int n=0;
    explicit Widget(QWidget *parent = 0);
    ~Widget();


    virtual void mouseMoveEvent(QMouseEvent *event);
    virtual void mousePressEvent(QMouseEvent *event);
    virtual void mouseReleaseEvent(QMouseEvent *event);
signals:
    void showbb();

private slots:
    void on_pushButton_clicked();


    void on_pushButton_2_clicked();

private slots:
    void recvkaichang();


    void on_beibao_clicked();

    void on_pushButton_3_clicked();

    void on_checkBox_stateChanged(int arg1);

    void on_pushButton_4_clicked();

private:
    Ui::Widget *ui;

    QPixmap MainWidgetImage;
    bool ifdragging;
    QPoint startPosition;
    QPoint framePosition;

};

#endif
